import java.util.Scanner;

public class BINConvert {
    public static void main(String[] args) {

            Scanner input = new Scanner(System.in);
            System.out.print("请输入整数：");
            int num = input.nextInt();
            int a =0;//定义一个int变量接受
            int b =0;//统计循环的次数
            int c =0;//c为最后的二进制
            while(num!=0) {
                a = num%2;
                num = num/2;
                b++;
                for(int i=0; i<b; i++) {
                    a=a*10;
                }
                c+=a;
            }
            System.out.println(c);

        }

}
